package com.ruoyi.web.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.web.domain.Doctor;
import com.ruoyi.web.mapper.DoctorMapper;
import com.ruoyi.web.service.IDoctorService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class IDoctorServiceImpl extends ServiceImpl<DoctorMapper, Doctor> implements IDoctorService {
    @Resource
    private DoctorMapper doctorMapper;

    @Override
    public Doctor selectDoctorByDoctorid(Long doctorid) {
        return doctorMapper.selectDoctorByDoctorid(doctorid);
    }

    @Override
    public List<Doctor> selectDoctorList(Doctor doctor) {
        return doctorMapper.selectDoctorList(doctor);
    }

    @Override
    public int insertDoctor(Doctor doctor) {
        return doctorMapper.insertDoctor(doctor);
    }

    @Override
    public int updateDoctor(Doctor doctor) {
        return doctorMapper.updateDoctor(doctor);
    }

    @Override
    public int deleteDoctorByDoctorid(Long doctorid) {
        return doctorMapper.deleteDoctorByDoctorid(doctorid);
    }

    @Override
    public int deleteDoctorByDoctorids(Long[] doctorids) {
        return doctorMapper.deleteDoctorByDoctorids(doctorids);
    }
}
